package cn.edu.nbpt.campus_api.mapper.blog;

import cn.edu.nbpt.campus_api.model.blog.entity.Category;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CategoryMapper {

    List<Category> selectCategoryList(@Param("name") String name);

    Category selectCategory(Integer id);

    Integer insertCategory(Category category);

    Integer updateCategory(Category category);

    Integer deleteCategory(List<Integer> ids);
}
